# coding: utf-8

import json

def to_json(object, cli=None):
    return json.dumps(object, cls=cli)

def to_object(json_string):
    return json.loads(json_string)